/**
 * 
 */
package com.nh.orderEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.nh.entity.BaseEntity;

/**
 * 项目名称：OrderingMiddleware
 * 
 * 类名称：TableLodgeEntity
 * 
 * 类描述：桌子类
 * 
 * 创建人：李兴建
 * 
 * E-mail:lxj08193@163.com
 * 
 * 创建时间：2013-1-8 上午10:50:23
 * 
 * 修改人：李兴建
 * 
 * 修改时间：2013-1-8 上午10:50:23
 * 
 * 修改备注：
 * 
 * @version
 */
@Entity
@Table(name = "c_zz")
public class TableLodgeEntity extends BaseEntity{
	private int tid;// 桌子id
	private String tid2;// 桌子ids
	private String code;// 桌子编号
	private String name;// 桌子名称
	private String pinyin;// 桌子拼音码
	private String tableNum;// 桌号
	private String floorName;// 楼层
	private int state;// 状态
	private int peopleCount;// 人数

	

	/**
	 * @return the tid
	 */
	
	@Id	
	@Column(name="桌子id")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "XNKY_BASE_IDENTITY")
	@SequenceGenerator(name = "XNKY_BASE_IDENTITY", initialValue = 1000000, allocationSize = 1)
	public int getTid() {
		return tid;
	}

	/**
	 * @param tid the tid to set
	 */
	public void setTid(int tid) {
		this.tid = tid;
	}

	/**
	 * @return the code
	 */
	@Column(name="桌子编号")
	public String getCode() {
		return code;
	}

	/**
	 * @param code
	 *            the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the name
	 */
	@Column(name="桌子名称")
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the pinyin
	 */
	@Column(name="桌子拼音码")
	public String getPinyin() {
		return pinyin;
	}

	/**
	 * @param pinyin
	 *            the pinyin to set
	 */
	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	/**
	 * @return the tableNum
	 */
	@Transient
	public String getTableNum() {
		return tableNum;
	}

	/**
	 * @param tableNum
	 *            the tableNum to set
	 */
	public void setTableNum(String tableNum) {
		this.tableNum = tableNum;
	}

	/**
	 * @return the floorName
	 */
	@Column(name="楼层")
	public String getFloorName() {
		return floorName;
	}

	/**
	 * @param floorName
	 *            the floorName to set
	 */
	public void setFloorName(String floorName) {
		this.floorName = floorName;
	}

	/**
	 * @return the state
	 */
	@Column(name="状态")
	public int getState() {
		return state;
	}

	/**
	 * @param state
	 *            the state to set
	 */
	public void setState(int state) {
		this.state = state;
	}

	/**
	 * @return the peopleCount
	 */
	@Column(name="人数")
	public int getPeopleCount() {
		return peopleCount;
	}

	/**
	 * @param peopleCount
	 *            the peopleCount to set
	 */
	public void setPeopleCount(int peopleCount) {
		this.peopleCount = peopleCount;
	}

	/**
	 * @return the tid2
	 */
	@Transient
	public String getTid2() {
		return tid+"";
	}

	/**
	 * @param tid2 the tid2 to sets
	 */
	public void setTid2(String tid2) {
		this.tid2 = tid2;
	}

}
